package datastructure.list;

import java.util.Iterator;

/**
 * Description：
 * Author: zhangc
 * Date：2017/6/7 22:32
 */
public interface List<T> {

    void append(T element);


    void insert(int index, T element);

    T get(int index);

    T remove(int index);

    List<T> subList(int start, int end);

    void clear();

    int length();


    boolean contains(T element);

    Iterator<T> iterator();

    T[] toArray(T[] array);

    Object[] toArray();

}
